package com.biostime.dingdingbox.modules.db.entity;

public class Goods implements Comparable<Object> {
	private int id;
	private double money;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public Goods(int id , double money){
		this.id = id;
		this.money = money;
	}
	
    public int compareTo(Object obj) {// Comparable接口中的方法  
    	Goods b = (Goods) obj;  
        return this.id - b.id; // 按书的id比较大小，用于默认排序  
    } 
	
}
